package cn.nn200433.swagger.entity;

import com.deepoove.poi.data.TextRenderData;

import java.util.List;

/**
 * 请求参数
 *
 * @author song_jx
 * @date 2022-03-24 02:26:35
 */
public class Parameter {

	/**
	 * 参数类型（query/header/body）
	 */
	private String in;

	/**
	 * 参数名
	 */
	private String name;

	/**
	 * 是否必填
	 */
	private boolean required;

	/**
	 * 参数说明
	 */
	private String description;

	/**
	 * 数据类型
	 */
	private String type;

	private List<TextRenderData> schema;

	private String defaultValue;

	public String getIn() {
		return in;
	}

	public void setIn(String in) {
		this.in = in;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isRequired() {
		return required;
	}

	public void setRequired(boolean required) {
		this.required = required;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public List<TextRenderData> getSchema() {
		return schema;
	}

	public void setSchema(List<TextRenderData> schema) {
		this.schema = schema;
	}

	public String getDefaultValue() {
		return defaultValue;
	}

	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}

}